package com.zhbit.action;

import com.opensymphony.xwork2.ActionSupport;
import com.zhbit.Service.NoticemangerService;
import com.zhbit.table.Notice;

public class UpdatenoticeAction extends ActionSupport{
private int id;
private String title;
private String content;
private NoticemangerService ns;
public void setContent(String content) {
	this.content = content;
}

public String getContent() {
	return content;
}

public void setTitle(String title) {
	this.title = title;
}

public String getTitle() {
	return title;
}



public void setNs(NoticemangerService ns) {
	this.ns = ns;
}

public NoticemangerService getNs() {
	return ns;
}



public String execute() throws Exception {
	
ns.updatenotice(id,title,content);

		return SUCCESS;

}

public int getId() {
	return id;
}

public void setId(int id) {
	this.id = id;
}
}
